package com.w.service.user.impl;

import com.w.mapper.user.UserMapper;
import com.w.pojo.User;
import com.w.pojo.UserExtend;
import com.w.service.user.UserService;
import com.w.utils.MybatisUtils;
import org.springframework.stereotype.Service;

/**
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @Author Administrator
 * @Date 2020/12/7 12:01
 */
@Service("UserServiceImpl")
public class UserServiceImpl implements UserService {
    public static UserMapper mapper;

    static {
         mapper = (UserMapper) MybatisUtils.getMapper(UserMapper.class);
    }

    @Override
    public int getUserLogin(User user) {
        return mapper.getUserLogin(user);
    }

    @Override
    public int insertUserExtend(UserExtend userExtend) {
        return mapper.insertUserExtend(userExtend);
    }

    @Override
    public int insertUser(User user) {
        return mapper.insertUser(user);
    }

}
